package com.ehotting.edsta.circuitDesign.generator.domain;

import java.io.Serializable;

/**
 * 电路类型
 * @TableName es_circuit_type
 */
public class EsCircuitType implements Serializable {
    /**
     * 编号
     */
    private Long id;

    /**
     * 名称
     */
    private String name;

    /**
     * 序号
     */
    private Integer priority;

    /**
     * 电路类型
     */
    private Integer circuit_type;

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    public Long getId() {
        return id;
    }

    /**
     * 编号
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 名称
     */
    public String getName() {
        return name;
    }

    /**
     * 名称
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 序号
     */
    public Integer getPriority() {
        return priority;
    }

    /**
     * 序号
     */
    public void setPriority(Integer priority) {
        this.priority = priority;
    }

    /**
     * 电路类型
     */
    public Integer getCircuit_type() {
        return circuit_type;
    }

    /**
     * 电路类型
     */
    public void setCircuit_type(Integer circuit_type) {
        this.circuit_type = circuit_type;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EsCircuitType other = (EsCircuitType) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPriority() == null ? other.getPriority() == null : this.getPriority().equals(other.getPriority()))
            && (this.getCircuit_type() == null ? other.getCircuit_type() == null : this.getCircuit_type().equals(other.getCircuit_type()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPriority() == null) ? 0 : getPriority().hashCode());
        result = prime * result + ((getCircuit_type() == null) ? 0 : getCircuit_type().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", priority=").append(priority);
        sb.append(", circuit_type=").append(circuit_type);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}